package com.aspose.cells;

import java.util.ArrayList;

class zcbf {
   private zcda a;
   private Workbook b;
   private zoz c;
   private zbxz d;
   private int e;
   private byte[] f;
   private int g;
   private ArrayList h;
   private zpa i;
   private Worksheet j;

   zcbf(zcda var1) {
      this.a = var1;
      this.b = var1.a;
      this.c = var1.b;
      this.h = new ArrayList();
   }

   void a(zpa var1, zbxz var2) throws Exception {
      this.d = var2;
      this.i = var1;
      this.j = var1.d;
      Comment var3 = null;

      while(true) {
         this.e = this.d.a();
         switch(this.e) {
         case 629:
            this.d.a(1L);
            return;
         case 630:
         case 631:
         case 633:
         case 634:
         case 636:
         default:
            this.g = this.d.b();
            this.d.a((long)this.g);
            break;
         case 632:
            this.f = this.a.a(this.d);
            String var7 = zcch.d(this.f, 0);
            com.aspose.cells.b.a.a.ze.a(this.h, (Object)var7);
            break;
         case 635:
            this.f = this.a.a(this.d);
            int var4 = com.aspose.cells.b.a.zc.a(this.f, 0);
            CellArea var5 = zcch.a(this.f, 4);
            int var6 = this.j.getComments().add(var5.StartRow, var5.StartColumn);
            var3 = this.j.getComments().get(var6);
            if (var4 < this.h.size() && var4 >= 0) {
               var3.setAuthor((String)this.h.get(var4));
            }
            break;
         case 637:
            this.f = this.a.a(this.d);
            zcch.a(this.b.getWorksheets(), this.c.d(), var3.b(), this.f, 0);
         }
      }
   }
}
